package com.woniuxy.oa.service.impl;

import com.woniuxy.oa.dao.SalaryDAO;
import com.woniuxy.oa.entity.Salary;
import com.woniuxy.oa.entity.query.SalaryQuery;
import com.woniuxy.oa.service.SalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: 毓
 * @Date: 2019/12/25 11:43
 * @Description:MMMMMMMMMMMMMMMMMMMMM
 */
@Service
public class SalaryServiceImpl implements SalaryService {
    @Autowired
    private SalaryDAO salaryDAO;

    @Override
    public void add(Salary salary) {
        salaryDAO.add(salary);
    }


    @Override
    public void update(Salary salary) {
        salaryDAO.update(salary);
    }



    @Override
    public Salary getByEmployeeId(String employeeId) {
        return salaryDAO.getByEmployeeId(employeeId);
    }

    @Override
    public List<Salary> getByQuery(SalaryQuery salary) {
        return salaryDAO.getByQuery(salary);
    }

    @Override
    public Salary getById(String id) {
        return salaryDAO.getById(id);
    }

}